﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BotonJXC.Entity;

namespace BotonJXC.BLL
{
    public class FinanceBillsBll : BaseBLL<FinanceBillsDAO, FinanceBills, int>
    {
        public FinanceBillsBll() { }
        FinanceBillsDAO FinanceBillsDAO = new FinanceBillsDAO();
        public bool SaveFinance(FinanceBills FinanceBills)
        {
            try
            {
                FinanceBillsDAO.SaveFinance(FinanceBills);
                return true;
            }
            catch (Exception)
            {
                return false;
                throw;
            }

        }
        public bool Modify(FinanceBills FinanceBills)
        {
            try
            {
                FinanceBillsDAO.Modify(FinanceBills);
                return true;
            }
            catch (Exception)
            {
                throw;
            }
        }

        public bool DeleteFinance(FinanceBills FinanceBills)
        {
            try
            {
                FinanceBillsDAO.DeleteFinance(FinanceBills);
                return true;
            }
            catch (Exception)
            {
                throw;
            }
        }
        public PageModel<FinanceBills> FindPage(FinanceBills FinanceBills, int start, int count)
        {
            return FinanceBillsDAO.FindPage(FinanceBills, start, count);
        }

    
    }
}
